package com.zs.framework.mail.producer;

import com.zs.framework.mail.utils.SendEmailProducer;

import javax.mail.internet.MimeMessage;

/**
 * @author zhougf
 * @version 1.0
 * @date 2020/07/23
 */
public interface MailProducible<T> {

    /**
     * 获取发送者
     * @return
     */
    SendEmailProducer getSendEmailProducer();

    /**
     * 设置真正发送者
     * @param sendMailProducer
     */
    void setSendMailProducer(SendEmailProducer sendMailProducer);

    /**
     *
     * @param theme
     * @param content
     * @return
     */
    Boolean sendMail(String theme, String content);
}
